package com.bless.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.bless.common.annotation.Excel;
import com.bless.common.core.domain.BaseEntity;

/**
 * 祝福语对象 sys_bless
 *
 * @author bless
 * @date 2023-06-16
 */
public class SysBless extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String name;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 封面 */
    @Excel(name = "封面")
    private String img;

    /** 祝福语 */
    @Excel(name = "祝福语")
    private String content;

    /** 浏览次数 */
    @Excel(name = "浏览次数")
    private Long lookNum;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setImg(String img)
    {
        this.img = img;
    }

    public String getImg()
    {
        return img;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setLookNum(Long lookNum)
    {
        this.lookNum = lookNum;
    }

    public Long getLookNum()
    {
        return lookNum;
    }
    public void setAddTime(Date addTime)
    {
        this.addTime = addTime;
    }

    public Date getAddTime()
    {
        return addTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("type", getType())
            .append("img", getImg())
            .append("content", getContent())
            .append("lookNum", getLookNum())
            .append("addTime", getAddTime())
            .toString();
    }
}
